/*
 * Copyright 2017 Baiyyy
 * @(#)Cjsb.java
 */

package com.byyy.ccts.modules.cc.entity.ccts;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.byyy.ccts.core.common.entity.AbstractEntity;
import com.byyy.ccts.core.security.shiro.authz.annotation.DataPermission;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * Created by DELL on 2018-4-28.
 */
@TableName("T_A_DEVICE")
public class TADevice extends AbstractEntity<String> {

    /** 主键 */
    @TableId(value = "ID", type = IdType.UUID)
    private String id;

    /** 编号 */
    @TableField(value = "NO")
    private String no;

    @TableField("SN")
    private String sn;

    @TableField("TEL")
    private String tel;

    @TableField("H_T")
    private String highT;

    @TableField("L_T")
    private String lowT;

    @TableField("MINUTE")
    private String minute;

    @TableField("MINUTE_DEFAULT")
    private String minuteDefault;

    @TableField("ADMIN_TEL")
    private String adminTel;

    @TableField("STATE")
    private String state;

    @TableField("WORKING")
    private String working;

    @TableField("VER")
    private String ver;

    @TableField("SHOW")
    private String show;

    @TableField(exist = false)
    private String temperature;

    @TableField(exist = false)
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Timestamp collectTime;

    /** 电量 */
    @TableField(exist = false)
    private int electric;

    /** 信号 */
    @TableField(exist = false)
    private String semaphore;

    /** 仓库 */
    @DataPermission
    @TableField(value="CANGKU")
    private String cangku;

    /** 电量低报警值 */
    @TableField(exist = false)
    private int electricAlarm;

    /** 电量低预警值 */
    @TableField(exist = false)
    private int electricWarning;

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getHighT() {
        return highT;
    }

    public void setHighT(String highT) {
        this.highT = highT;
    }

    public String getLowT() {
        return lowT;
    }

    public void setLowT(String lowT) {
        this.lowT = lowT;
    }

    public String getMinute() {
        return minute;
    }

    public void setMinute(String minute) {
        this.minute = minute;
    }

    public String getMinuteDefault() {
        return minuteDefault;
    }

    public void setMinuteDefault(String minuteDefault) {
        this.minuteDefault = minuteDefault;
    }

    public String getAdminTel() {
        return adminTel;
    }

    public void setAdminTel(String adminTel) {
        this.adminTel = adminTel;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getWorking() {
        return working;
    }

    public void setWorking(String working) {
        this.working = working;
    }

    public String getVer() {
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }

    public String getShow() {
        return show;
    }

    public void setShow(String show) {
        this.show = show;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public Timestamp getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Timestamp collectTime) {
        this.collectTime = collectTime;
    }

    public int getElectric() {
        return electric;
    }

    public void setElectric(int electric) {
        this.electric = electric;
    }

    public String getSemaphore() {
        return semaphore;
    }

    public void setSemaphore(String semaphore) {
        this.semaphore = semaphore;
    }

    public String getCangku() {
        return cangku;
    }

    public void setCangku(String cangku) {
        this.cangku = cangku;
    }

    @Override
    public String getId() {
        return this.id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public int getElectricAlarm() {
        return electricAlarm;
    }

    public void setElectricAlarm(int electricAlarm) {
        this.electricAlarm = electricAlarm;
    }

    public int getElectricWarning() {
        return electricWarning;
    }

    public void setElectricWarning(int electricWarning) {
        this.electricWarning = electricWarning;
    }
}
